#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int removeElement(int* nums, int numsSize, int val) {
    int src = 0;
    int des = 0;

    while (src < numsSize)
    {
        if (nums[src] == val)
        {
            src++;
        }
        else
        {
            nums[des] = nums[src];
            src++;
            des++;
        }

    }
    return des;
}